package com.example.demomybatis.service;

import cn.hutool.core.lang.Pair;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demomybatis.entity.Person;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhaoheng
 * @since 2023-07-07
 */
public interface IPersonService extends IService<Person> {

    boolean updateBirthday(String name, String localDate);

    List<Person> getByNames(List<String> names);

    List<Person> queryAllPerson();

    List<Pair<String, Integer>> queryId();

    Page<Person> queryPage(int pageNum, int pageSize);
}
